home *** CD-ROM | disk | FTP | other *** search
- on defbuggy
- global ogre, caranim, mouthindex, temp, phrases
- set phrases to [:]
- set phrases to [:]
- set temp to []
- set yyy to 1
- repeat with xxx = 1 to 4
- set dingus to the number of cast ("mouth" & xxx)
- add(temp, dingus)
- end repeat
- set caranim to temp
- set ogre to birth(script "buggyhead", 48, caranim)
- end
-
- on talkyou soundname
- global ogre, phrases
- set the bugsound of ogre to soundname
- sayit(ogre)
- unLoadCast(soundname)
- end
-
- on mydelay wholong
- set ptime to the timer
- repeat while (the timer - ptime) < wholong
- updateStage()
- if the mouseDown then
- exit
- end if
- end repeat
- end
-
- on sactivate snew, stuff
- puppetSprite(snew, 1)
- if listp(stuff) then
- set the castNum of sprite snew to getAt(stuff, 1)
- set the locH of sprite snew to getAt(stuff, 2)
- set the locV of sprite snew to getAt(stuff, 3)
- set the ink of sprite snew to getAt(stuff, 4)
- set the type of sprite snew to getAt(stuff, 5)
- set the stretch of sprite snew to getAt(stuff, 6)
- set the foreColor of sprite snew to getAt(stuff, 7)
- set the backColor of sprite snew to getAt(stuff, 8)
- end if
- end
-
- on sinfo sold
- set stemp to []
- add(stemp, the castNum of sprite sold)
- add(stemp, the locH of sprite sold)
- add(stemp, the locV of sprite sold)
- add(stemp, the ink of sprite sold)
- add(stemp, the type of sprite sold)
- add(stemp, the stretch of sprite sold)
- add(stemp, the foreColor of sprite sold)
- add(stemp, the backColor of sprite sold)
- return stemp
- put stemp
- end
-
- on makesiner
- global variations
- set variations to []
- repeat with ddd = 1 to 64
- add(variations, 4 * sin(ddd * PI / 32))
- end repeat
- end
-